package com.example.actionsignin.entity;

/**
 * Created by 旭 on 2017/11/6/006.
 */

public class FaceEntity {
    //整个请求所花费的时间，单位为毫秒。
    int time_used;
    //比对结果置信度，范围 [0,100],越大越相似
    float confidence;
    //错误信息
    String error_message;

    //判断是否监测到人脸  如果为null  则不返回
    Thresholds thresholds;
    //用于区分每一次请求的唯一的字符串。
    String request_id;

    class Thresholds{

    }

    public int getTime_used() {
        return time_used;
    }

    public void setTime_used(int time_used) {
        this.time_used = time_used;
    }

    public float getConfidence() {
        return confidence;
    }

    public void setConfidence(float confidence) {
        this.confidence = confidence;
    }

    public String getError_message() {
        return error_message;
    }

    public void setError_message(String error_message) {
        this.error_message = error_message;
    }

    public Thresholds getThresholds() {
        return thresholds;
    }

    public void setThresholds(Thresholds thresholds) {
        this.thresholds = thresholds;
    }

    public String getRequest_id() {
        return request_id;
    }

    public void setRequest_id(String request_id) {
        this.request_id = request_id;
    }

    @Override
    public String toString() {
        return  "time_used = " + time_used + ",\nconfidence = " + confidence + "\nerror_message = " + error_message
                + "\nrequest_id = " + request_id + ",\nthresholds = " + thresholds;
    }
}
